﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CacheAttribute.Attributes
{
    /// <summary>
    /// 设置缓存初始值Attribute
    /// </summary>
    [AttributeUsage(validOn:AttributeTargets.Method,AllowMultiple = true,Inherited = true)]
    public class CacheInitAttribute : Attribute
    {
        public string preffix { get; set; }

        public string Totoal_Name { get; set; }

        public bool work { get; set; }

        public object Init_Data { get; set; }

        public CacheInitAttribute(string preffix, string totoal_Name, bool work, object init_Data)
        {
            this.preffix = preffix;
            Totoal_Name = totoal_Name;
            this.work = work;
            Init_Data = init_Data;
        }
    }
}
